import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
const Logo = () =>
    import ('../views/Logo');
const Home = () =>
    import ('../views/Home');
const Test = () =>
    import ('../views/Test');

const Finally = () =>
    import ('../views/Finally');
const LoginIn = () =>
    import ('../views/userIn');

const Approval = () =>
    import ('../views/Approval');
const routes = [{
        path: '/',
        name: 'LoginIn',
        component: LoginIn
    }, {
        path: '/logo',
        name: 'Logo',
        component: Logo
    }, {
        path: '/home',
        name: 'Home',
        component: Home
    }, {
        path: '/userTest',
        name: 'Test',
        component: Test
    }, {
        path: '/finally',
        name: 'Finally',
        component: Finally
    },
    {
        path: '/approval',
        name: 'Approval',
        component: Approval
    }
]

const router = createRouter({
    // history: createWebHistory(process.env.BASE_URL),
    history: createWebHashHistory(),
    routes
})

export default router